package br.com.ac.fatureweb.model.carga;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import br.com.ac.fatureweb.model.Carga;
import br.com.ac.fatureweb.utilitary.Model;

@Entity
@Table(name = "LANCAMENTO_FUTURO")
@SequenceGenerator(name = "SEQ_LANCAMENTO_FUTURO", sequenceName = "SEQ_LANCAMENTO_FUTURO", allocationSize = 1, initialValue = 1)
public class LancamentoFuturo extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8764227459645079239L;

	@Id
	@GeneratedValue(generator = "SEQ_LANCAMENTO_FUTURO", strategy = GenerationType.SEQUENCE)
	@Column(name = "ID")
	private Long id;

	@Column(name = "INSCRICAO")
	private Long inscricao;

	@Column(name = "COD_SERVICO")
	private Long codServico;

	@Column(name = "DES_SERVICO")
	private String descricao;

	@Column(name = "VAL_SERVICO")
	private Double valor;

	@Column(name = "PAR_COBRADA")
	private String parcela;

	@ManyToOne
	@JoinColumn(name = "ID_CARGA", referencedColumnName = "ID")
	private Carga carga;

	public LancamentoFuturo() {
		super();
	}

	public LancamentoFuturo(Long id, Long inscricao, Long codServico,
			String descricao, Double valor, String parcela) {
		super();
		this.id = id;
		this.inscricao = inscricao;
		this.codServico = codServico;
		this.descricao = descricao;
		this.valor = valor;
		this.parcela = parcela;
	}

	public LancamentoFuturo(Long id, Long inscricao, Long codServico,
			String descricao, Double valor, String parcela, Carga carga) {
		super();
		this.id = id;
		this.inscricao = inscricao;
		this.codServico = codServico;
		this.descricao = descricao;
		this.valor = valor;
		this.parcela = parcela;
		this.carga = carga;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the inscricao
	 */
	public Long getInscricao() {
		return inscricao;
	}

	/**
	 * @param inscricao
	 *            the inscricao to set
	 */
	public void setInscricao(Long inscricao) {
		this.inscricao = inscricao;
	}

	/**
	 * @return the codServico
	 */
	public Long getCodServico() {
		return codServico;
	}

	/**
	 * @param codServico
	 *            the codServico to set
	 */
	public void setCodServico(Long codServico) {
		this.codServico = codServico;
	}

	/**
	 * @return the descricao
	 */
	public String getDescricao() {
		return descricao;
	}

	/**
	 * @param descricao
	 *            the descricao to set
	 */
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	/**
	 * @return the valor
	 */
	public Double getValor() {
		return valor;
	}

	/**
	 * @param valor
	 *            the valor to set
	 */
	public void setValor(Double valor) {
		this.valor = valor;
	}

	/**
	 * @return the parcela
	 */
	public String getParcela() {
		return parcela;
	}

	/**
	 * @param parcela
	 *            the parcela to set
	 */
	public void setParcela(String parcela) {
		this.parcela = parcela;
	}

	/**
	 * @return the carga
	 */
	public Carga getCarga() {
		return carga;
	}

	/**
	 * @param carga
	 *            the carga to set
	 */
	public void setCarga(Carga carga) {
		this.carga = carga;
	}

}
